package models;

import java.util.*;
import javax.persistence.*;
import play.data.validation.Required;
import play.db.jpa.*;
import play.db.jpa.Model;
import javax.persistence.*;

@Entity
public class Entities extends Model{
	@Required
	public String EntityName;
	@Required 
	public boolean IsLocked;
	
	public LinkedList<Entities> AllEntities;
	
	public Entities(String name, boolean status)
	{
		this.EntityName= name;
		this.IsLocked = status;
		AllEntities.add(this);
	}
	
	public LinkedList<Entities> getAllEntites()
	{
		return AllEntities;
	}	
	
}
